<?php


/**
 * Constant definition
 */

// DIRECTORY_SEPARATOR
define('DS', DIRECTORY_SEPARATOR);
// PATH_SEPARATOR
define('PS', PATH_SEPARATOR);
// BASE_PATH (No slash at the end of path)
define('APP_BASE_PATH', dirname(__FILE__));
// LIBRARY_DEV_PATH (No slash at the end of path)
define('LIBRARY_DEV_PATH', APP_BASE_PATH . '/library.dev');
// LIBRARY_OFFICIAL_PATH (No slash at the end of path)
define('LIBRARY_OFFICIAL_PATH', APP_BASE_PATH . '/library.official');



/**
 * Include path
 */
set_include_path(
    LIBRARY_OFFICIAL_PATH
    . PATH_SEPARATOR
    . LIBRARY_DEV_PATH
    . PATH_SEPARATOR
    . get_include_path()
);


//register autoload class
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();



//start the application
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory(APP_BASE_PATH.'/application/controllers');

//dispatch the request and get the response to the web site visitor
$front->dispatch();




